package com.jumper.property.comparer.core.context;

import com.jumper.property.comparer.core.result.User;
import lombok.Getter;
import lombok.Setter;

/**
 * 对比数据对象
 * T 标识类型
 */
@Getter
@Setter
public class Context {
    /**
     * 操作对象唯一标识
     */
    private String optDataKey;
    /**
     * 操作用户
     */
    private User user;

    public Context(String optDataKey) {
        this.optDataKey = optDataKey;
    }

    public Context(String optDataKey, User user) {
        this.optDataKey = optDataKey;
        this.user = user;
    }
}
